/**
 * nft moudle api
 */

import base from "./base";
import request from "@/utils/request";

const nft = {

  getRiskList(){//获取风险藏品种类分布
    return request({
      url: base.serveUrl + "/riskList",
      method: 'get',
    })
  },
  getNftList(params) {
    return request({
      url: base.serveUrl + "/nftList",
      method: 'get',
      params
    })
  },
  tagRisk(data) {
    return request({
      url: base.serveUrl + "/riskTag",
      method: 'post',
      data
    })
  },
  getDetail(params) {
    return request({
      url: base.serveUrl + "/nftDetail",
      method: 'get',
      params
    })
  },
  getPlatform() {
    return request({
      url: base.serveUrl + "/getPlatform",
      method: 'get',
    })
  },
  getType() {
    return request({
      url: base.serveUrl + "/getType",
      method: 'get',
    })
  },
  delTagRisk(data) {
    return request({
      url: base.serveUrl + "/riskDel",
      method: 'post',
      data
    })
  },
  getRiskDistribution(){
    //获取平台风险藏品分布
    return request({
      url: base.serveUrl + "/riskDistribution",
      method: 'get',
    })
  },
  getRiskNum(){//获取风险藏品种类分布
    return request({
      url: base.serveUrl + "/riskNum",
      method: 'get',
    })
  },
  getRecentlyAddedRisk(){//近7日新增藏品
    return request({
      url: base.serveUrl + "/recentlyAddedRisk",
      method: 'get',
    })
  },
  getRiskTrend(){//获取平台风险藏品分布
    return request({
      url: base.serveUrl + "/riskTrend",
      method: 'get',
    })
  },
}

export default nft;